#ifndef __USART_H
#define __USART_H

#include "board.h"
#include "fifo.h"

extern char Serial4_RxPacket[];
extern uint8_t Serial4_RxFlag;
extern __IO bool rxFrameFlag;
extern __IO uint8_t rxCmd[FIFO_SIZE];
extern __IO uint8_t rxCount;
extern float pos_x;
extern float pos_y;
extern float zangle;
extern float xangle;
extern float yangle;
//extern float z;
//extern float x;
//extern float y;
extern float w_z;
void usart3_SendCmd(__IO uint8_t *cmd, uint8_t len);
void usart3_SendByte(uint16_t data);
void usart2_SendByte(u8 dat) ;
void usart2_SendCmd(u8 *s) ;
void Data_Analyse(uint8_t rec);
void Stract(char strDestination[],char strSource[],int num);
void Update_X(float New_X);
void Update_Y(float New_Y);
void Update_Z(float New_Z);
void Serial4_SendByte(uint8_t Byte);
void Serial4_SendString(char *String);
#endif
